package com.ruoyi.admin.service;

import java.math.BigDecimal;
import com.ruoyi.admin.domain.AlipayWithdrawalRecord;
import java.util.List;

/**
 * 提现记录Service接口
 * 
 * @author system
 * @date 2025-06-26
 */
public interface IAlipayWithdrawalRecordService
{
    /**
     * 查询提现记录
     * 
     * @param id 提现记录主键
     * @return 提现记录
     */
    public AlipayWithdrawalRecord selectAlipayWithdrawalRecordById(Long id);

    /**
     * 查询提现记录列表
     * 
     * @param alipayWithdrawalRecord 提现记录
     * @return 提现记录集合
     */
    public List<AlipayWithdrawalRecord> selectAlipayWithdrawalRecordList(AlipayWithdrawalRecord alipayWithdrawalRecord);

    /**
     * 新增提现记录
     * 
     * @param alipayWithdrawalRecord 提现记录
     * @return 结果
     */
    public int insertAlipayWithdrawalRecord(AlipayWithdrawalRecord alipayWithdrawalRecord);

    /**
     * 修改提现记录
     * 
     * @param alipayWithdrawalRecord 提现记录
     * @return 结果
     */
    public int updateAlipayWithdrawalRecord(AlipayWithdrawalRecord alipayWithdrawalRecord);

    /**
     * 批量删除提现记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAlipayWithdrawalRecordByIds(Long[] ids);

    /**
     * 删除提现记录信息
     * 
     * @param id 提现记录主键
     * @return 结果
     */
    public int deleteAlipayWithdrawalRecordById(Long id);

    /**
     * 申请提现
     * 
     * @param userId 用户ID
     * @param amount 提现金额
     * @return 提现记录ID
     */
    public Long applyWithdrawal(String userId, BigDecimal amount);

    /**
     * 处理提现申请
     * 
     * @param id 提现记录ID
     * @param status 处理状态(1:已完成,2:已拒绝)
     * @param remark 备注
     * @return 结果
     */
    public int processWithdrawal(Long id, Integer status, String remark);
}